$(document).ready(function() {
	$('.question').bind('click', function() {
	    $(this).attr('contentEditable','true');    
	});
	
	$('.question').bind('focusout', function() {
		$.ajax({
		   type: "POST",
		   url: "edit.php",
		   data: "q="+$(this).attr('id')+"&question="+$(this).html()+"&save=question",
		   success: function(msg){
		     alert( "Data Saved" );
		   }
		 });   
	});
});
